<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../css/bootstrap-theme.css">
    <link rel="stylesheet" href="../css/bootstrap.css">
    <title>Document</title>
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        main{width: 1100px;float: right;margin-top: 100px}
        .table{text-align: center}
    </style>
</head>
<body>
<main>
        <table class="table table-hover">
            <thead>
            <tr>
                <td>城市名称</td>
                <td>录入学校</td>
                <td>接洽中学校</td>
                <td>待审学校</td>
                <td>审核未通过学校</td>
                <td>推广开展学校</td>
            </tr>
            </thead>
            <tbody id="tdCard">

            </tbody>
        </table>


</main>

<script src="../js/jquery-3.5.1.js" ></script>
<script src="../js/bootstrap.js"></script>
<script type="text/javascript">
    var active=[
        {cityName:"成都市",schoolEnter:"80",contactSchool:"30",checkSchool:"10",passSchool:"10",notReadySchool:"30"},
        {cityName:"绵阳市",schoolEnter:"60",contactSchool:"20",checkSchool:"10",passSchool:"10",notReadySchool:"20"},
        {cityName:"乐山市",schoolEnter:"50",contactSchool:"20",checkSchool:"5",passSchool:"15",notReadySchool:"25"},
        {cityName:"宜宾市",schoolEnter:"40",contactSchool:"15",checkSchool:"5",passSchool:"10",notReadySchool:"10"},

    ]
    displayInfo();

    function displayInfo(){
        $("#tdCard").html("");

        //6条数据  两页  并且还要有active的长度 进去 所以要满足两个条件
        for(var i=0;i<active.length;i++){
            $("#tdCard").append(`<tr>
                     <td class="name">${active[i].cityName}</td>
                     <td>${active[i].schoolEnter}</td>
                     <td>${active[i].contactSchool}</td>
                     <td>${active[i].checkSchool}</td>
                      <td>${active[i].passSchool}</td>
                     <td>${active[i].notReadySchool}</td>

                 </tr>`)

        }
    }


</script>

</body>
</html>